package com.itheima.service;

import com.itheima.dto.*;
import com.itheima.result.Result;
import com.itheima.ship.po.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.vo.PageResultVO;
import org.springframework.stereotype.Service;

import javax.security.auth.login.AccountException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 郑哥
 * @since 2024-05-18
 */
@Service
public interface IEmployeeService extends IService<Employee> {


    Employee getEmployeeByUsernameAndPassword(EmployeeLoginDTO employeeLoginDTO) throws AccountException;



    void registerEmployee(EmployeeRegisterDTO employeeRegisterDTO) throws AccountException;


    Result<PageResultVO> selectEmployeeByPage(EmployeePageDTO employeePageDTO);


    void insertEmployee(InsertEmployeeDTO employeeRegisterDTO);

    Employee selectEmployeeById(Long id);

    void updateEmployee(UpdateEmployeeDTO updateEmployeeDTO);

    void updateEmployeeStatus(Integer status, Long id);
}
